package org.x.legalcasemod.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.x.commonmod.config.Result;
import org.x.legalcasemod.dto.AssignLawyerDTO;
import org.x.legalcasemod.service.ICaseManagementService;

@RestController
@RequestMapping("/api/case")


public class CaseManagement {

    @Autowired
    private ICaseManagementService caseManagementService;

    /**
     * 分配律师
     * @return
     */
    @PostMapping("/assign")
    public Result assignLawyer(@RequestBody AssignLawyerDTO assignLawyerDTO){
        caseManagementService.assignLawyer(assignLawyerDTO);
        return Result.ok("分配成功");
    }
}
